package com.iwunu.auth.vo;

import org.springframework.security.core.GrantedAuthority;

/**
 * jwt角色
 * @author vivi207
 *
 */
public class JwtRole implements GrantedAuthority {
	/** 角色ID **/
	private String id;
	/** 角色名称 **/
	private String name;
	/** 角色代码 **/
	private String authority;
	
	public JwtRole() {
		super();
	}
	public JwtRole(String authority) {
		super();
		this.authority = authority;
	}
	public JwtRole(String id, String name, String authority) {
		super();
		this.id = id;
		this.name = name;
		this.authority = authority;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthority() {
		return authority;
	}
	public void setAuthority(String authority) {
		this.authority = authority;
	}
	@Override
	public String toString() {
		return "JwtRole [id=" + id + ", name=" + name + ", authority=" + authority + "]";
	}

}
